package com.tizona.service;

import com.tizona.entity.Split;
import com.tizona.entity.Session;
import com.tizona.entity.Chunk;
import com.tizona.service.impl.Tarification;
import com.tizona.dao.SplitDAO;

import java.util.Set;
import java.util.Calendar;
import java.sql.SQLException;

/**
 * Created by Vitaliy Kim.
 * Date: 28.08.2005
 * Time: 14:57:33
 */
public interface SplitManager {

    public void setDAO(SplitDAO lcDAO);

    public void addChunks(Session session, Set<Chunk> chunks);

    public void process(Session session, Tarification tarif, final Calendar modelTime);

    public void closeAllSplits(Session session) throws SQLException;

    public Split getLatestSplit(Set<Split> splits);

    public void SaveOrUpdate(Split split) throws SQLException;

}
